<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ldap.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ldap.using.html">Using the PHP LDAP calls</a></div>
 <div class="up"><a href="book.ldap.html">LDAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ldap.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.ldap-deref-never">
    <strong><code>LDAP_DEREF_NEVER</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-deref-searching">
    <strong><code>LDAP_DEREF_SEARCHING</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-deref-finding">
    <strong><code>LDAP_DEREF_FINDING</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-deref-always">
    <strong><code>LDAP_DEREF_ALWAYS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-deref">
    <strong><code>LDAP_OPT_DEREF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies alternative rules for following aliases at the server.
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-sizelimit">
    <strong><code>LDAP_OPT_SIZELIMIT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <p class="para">
     Specifies the maximum number of entries that can be
     returned on a search operation.
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <span class="simpara">
      The actual size limit for operations is also bounded
      by the server&#039;s configured maximum number of return entries.
      The lesser of these two settings is the actual size limit.
     </span>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.ldap-opt-timelimit">
    <strong><code>LDAP_OPT_TIMELIMIT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the number of seconds to wait for search results.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <span class="simpara">
      The actual time limit for operations is also bounded
      by the server&#039;s configured maximum time.
      The lesser of these two settings is the actual time limit.
     </span>
    </p></blockquote>
   </dd>

  

  
   <dt id="constant.ldap-opt-network-timeout">
    <strong><code>LDAP_OPT_NETWORK_TIMEOUT</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Option for <span class="function"><a href="function.ldap-set-option.html" class="function">ldap_set_option()</a></span> to allow setting network timeout.
     (Available as of PHP 5.3.0)
    </span>
   </dd>

  

  
   <dt id="constant.ldap-opt-protocol-version">
    <strong><code>LDAP_OPT_PROTOCOL_VERSION</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the LDAP protocol to be used (V2 or V3).
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-error-number">
    <strong><code>LDAP_OPT_ERROR_NUMBER</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-referrals">
    <strong><code>LDAP_OPT_REFERRALS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies whether to automatically follow referrals returned
     by the LDAP server.
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-restart">
    <strong><code>LDAP_OPT_RESTART</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-host-name">
    <strong><code>LDAP_OPT_HOST_NAME</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-error-string">
    <strong><code>LDAP_OPT_ERROR_STRING</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-matched-dn">
    <strong><code>LDAP_OPT_MATCHED_DN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-server-controls">
    <strong><code>LDAP_OPT_SERVER_CONTROLS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies a default list of server controls to be sent with each request.
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-client-controls">
    <strong><code>LDAP_OPT_CLIENT_CONTROLS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies a default list of client controls to be processed with each request.
    </span>
   </dd>

  
  
   <dt id="constant.ldap-opt-debug-level">
    <strong><code>LDAP_OPT_DEBUG_LEVEL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies a bitwise level for debug traces.
    </span>
   </dd>

  
  
   <dt id="constant.gslc-ssl-no-auth">
    <strong><code>GSLC_SSL_NO_AUTH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.gslc-ssl-oneway-auth">
    <strong><code>GSLC_SSL_ONEWAY_AUTH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.gslc-ssl-twoway-auth">
    <strong><code>GSLC_SSL_TWOWAY_AUTH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ldap.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ldap.using.html">Using the PHP LDAP calls</a></div>
 <div class="up"><a href="book.ldap.html">LDAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
